<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/taglib.jsp" %>
<html>
<head>

<link rel="stylesheet" href="${ctx}/static/css/Master.css">
<link rel="stylesheet" href="${ctx}/static/css/lq.datetimepick.css">
<script src="${ctx}/static/js/jquery-1.9.0.min.js"></script>
<script src="${ctx}/static/js/simpletooltip.min.js"></script>
<script src="${ctx}/static/js/selectUi.js"></script>
<script src="${ctx}/static/js/common/util.js"></script>
<script src="${ctx}/static/plugins/layer/layer.js"></script>
<script src="${ctx}/static/js/lq.datetimepick.js"></script>
<script src="${ctx}/static/plugins/My97DatePicker/WdatePicker.js"></script>
<%-- 基础js,所有页面都需要引入此js,依赖layer.js --%>
<script src="${ctx}/static/js/common/base.js"></script>
<script>
function find(){
	 var a = $("#form1");
	//console.log(a);
	//console.log(a.serialize());
	a.submit();
}
</script>
</head>



<body>

<section class="boxRight">
				<div class="context boxborder">
				<form action="${ctx}/inform/listNo" method="post" id="form1">
					<div class="SearchList">
						<ul class="clearfix">
							<li><span class="name">创建时间：</span><span class="date"><input name="stTime" type="text" placeholder="开始时间" id="datetimepicker_start" value="${advice.stTime}" style="width:115;height:35" class="Wdate" onclick="WdatePicker()"/></span>
							<span class="fg">~</span><span class="date"><input name="endTime" type="text" placeholder="结束时间" id="datetimepicker_end" value="${advice.endTime}" style="width:115;height:35" class="Wdate" onclick="WdatePicker()"/></span></li>
							<li class="combtn pr"><a href="javascript:void(0);" onclick="find()">查询</a><!-- <a href="${ctx}/inform/informAdd">新增</a> --></li>
						</ul>
					</div>
					
					<shiro:hasPermission name="advice:inform:create">
					<div class="pr prlink"><a href="${ctx}/inform/informAdd"><span class="icon j_icon"></span>新增</a></div>
					</shiro:hasPermission>
					<div class="tabnavList">
						<ul class="clearfix">
							<li><a href="${ctx}/inform/list">已发布</a></li>
							<li class="curr"><a href="${ctx}/inform/listNo">未发布</a></li>
						</ul>
					</div>
					<div class="com_table">
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<th>标题</th>
								<th>发送时间</th>
								<th>发送人</th>
								<th>状态</th>
								<th>操作</th>
							</tr>
							 <c:forEach items="${result.entityList}" var="advice">
							<tr>
								<td>
								<div class="utilTips">
								${advice.advTitle.length()>10?advice.advTitle.substring(0,10).concat(" ..."):advice.advTitle}
	                			<c:if test="${advice.advTitle.length()>10}">
	                			<div class="utilTipsText" style="display: none;">${advice.advTitle}</div>
	                			</c:if>
							   </div>
								</td>
								<td>
								<div class="utilTips">
								<pretty:prettyTime date="${advice.startDate}"/>
								<div class="utilTipsText" style="display: none;"><fmt:formatDate value="${advice.startDate}" pattern="yyyy-MM-dd" /></div>
								</div>
								</td>
								<td>${advice.userName}</td>
								<td>未发布</td>
								<td>
								<shiro:hasPermission name="advice:inform:view">
								<a class="icon micon_9" title="详情" href="${ctx}/inform/${advice.advId}/listDetails"></a>
								</shiro:hasPermission>
								<shiro:hasPermission name="advice:inform:update">
								<a class="icon micon_2" title="编辑" href="${ctx}/inform/${advice.advId}/informEdit"></a>
								</shiro:hasPermission>
								<shiro:hasPermission name="advice:inform:send">
								<a class="icon micon_15" title="发送" href="${ctx}/inform/${advice.advId}/SendInform"></a>
								</shiro:hasPermission>
								</td>
							</tr>
							</c:forEach>
						</table>
								
					 <%-- 分页 --%>
		            <%@ include file="/WEB-INF/common/page.jsp"%>
					</div>
					</form>
				</div>
			
		</section>
</body>
</html>